package com.carlinfo.hospital.service.impl;

import com.carlinfo.hospital.dao.impl.OrderDaoImpl;
import com.carlinfo.hospital.pojo.Order;
import com.carlinfo.hospital.service.OrderService;
import com.carlinfo.hospital.util.PageInfoUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderDaoImpl orderDao;

    @Override
    public int saveOneDao(Order order) {
        return this.orderDao.saveOneDao(order);
    }

    @Override
    public List<Order> selectListDao(PageInfoUtil pageInfoUtil, Map<String, Object> condMap) {
        return this.orderDao.selectListDao(pageInfoUtil, condMap);
    }

    @Override
    public Order selectOneDao(Map<String, Object> condMap) {
        return this.orderDao.selectOneDao(condMap);
    }

    @Override
    public int updateOneDao(Order order) {
        return this.orderDao.updateOneDao(order);
    }

    @Override
    public int deleteOneDao(Map<String, Object> condMap) {
        return this.orderDao.deleteOneDao(condMap);
    }
}
